const express = require('express')
const router = express.Router()


const controller = require('../controller/controller.js')

//首页
router.get('/', controller.index)


//登录页面
router.get('/login', controller.login)

//分类列表
router.get('/category', controller.category)

//文章列表
router.get('/article', controller.article)

//方法渲染
router.get('/cartData', controller.cartData)

//自动渲染
router.post('/updcartData', controller.updcartData)

//删除列表行
router.post('/delCart',controller.delCart)

//后台名称
router.get('/loginGet',controller.loginGet)

//请求登录
router.post('/userLogin',controller.userLogin)

//退出登录
router.post('/userLoginout',controller.userLoginout)

module.exports = router;